package com.aliyun.heiyu.powermaster.server.rotary.task;

import com.aliyun.heiyu.powermaster.server.service.StateGridPowerctlAgentServerPerformanceServiceImplRun;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


/***
 * arm 服务器数据采集
 */
public class StateGridPowerctlAgentServerPerformanceTask implements Job {
    private static Logger logger = LoggerFactory.getLogger(StateGridPowerctlAgentServerPerformanceTask.class);
    private StateGridPowerctlAgentServerPerformanceServiceImplRun stateGridPowerctlAgentServerPerformanceServiceImplRun = new StateGridPowerctlAgentServerPerformanceServiceImplRun();

    @Override
    public void execute(JobExecutionContext jobExecutionContext)  {
        try {
            //正式环境
            stateGridPowerctlAgentServerPerformanceServiceImplRun.threadPoolTask();

        } catch (Exception e) {
            logger.error("StateGridPowerctlAgentServerPerformanceTask-job-Exception【{}】",e);
        }
    }
}
